from course import views
from django.urls import path
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register(r'images', views.Brand)
router.register('hot', views.HotWordView,basename='hot')
urlpatterns = [
    path('allcate/', views.Category.as_view()),
    path('cate/',views.NowCate.as_view()),
    path('direction/',views.Direction.as_view()),
    path('childcate/',views.ChildCate.as_view()),
    path('list/',views.CourseList.as_view()),
    path('detail/',views.Detail.as_view()),
    path('upload/',views.Upload.as_view()),
    path('hotword/',views.HotWord.as_view())
]
urlpatterns += router.urls